package com.company.cloud.user.modules.demo.service;

import com.alicp.jetcache.anno.CacheInvalidate;
import com.alicp.jetcache.anno.CacheType;
import com.alicp.jetcache.anno.Cached;
import com.company.cloud.user.modules.demo.models.CacheTestModel;

public interface JetCacheTestService {

//    @Cached(name = "CacheTest:",key = "#id",cacheType = CacheType.BOTH, expire = 3600)
    public CacheTestModel get(int id);

//    @CacheInvalidate(name = "CacheTest:",key = "#id")
    public void del(int id);

//    @Cached(key = "#param" ,cacheType = CacheType.REMOTE,expire = 900)
    public CacheTestModel get2(CacheTestModel param);
}


